﻿import idv.ben.gc4flash.chart.*;
import idv.ben.gc4flash.dataLine.*;
import idv.ben.gc4flash.encode.*;
import idv.ben.gc4flash.fill.*;
import idv.ben.gc4flash.style.*;
import idv.ben.gc4flash.util.*;
/**
* LineStyle，用來設定 {@link idv.ben.gc4flash.dataLine.DataLine} 資料線段的樣式。<br>
*/
class idv.ben.gc4flash.style.LineStyle {
	private var thickness:Number;
	private var lineLen:Number;
	private var blankLen:Number;
	/**
	* 建構子
	* @param thickness 線條粗細。
	* @param lineLen 每一段線條的長度。
	* @param blankLen 每一段線條之間的距離。
	*/
	function LineStyle(thickness:Number, lineLen:Number, blankLen:Number) {
		this.thickness = thickness;
		this.lineLen = lineLen;
		this.blankLen = blankLen;
	}
	/**
	* 取得 {@link idv.ben.gc4flash.dataLine.LineStyle} 所組成的 URL 參數字串<br>
	* <img src="http://chart.apis.google.com/chart?cht=lc&chd=s:93zyvneTTOMJMLIJFHEAECFJGHDBFCFIERcgnpy45879,IJKNUWUWYdnswz047977315533zy1246872tnkgcaZQONHCECAAAAEII&chls=3,6,3|1,1,0&chs=200x125"><br>
	* chls=3,6,3|1,1,0
	* @return URL 參數字串
	*/
	public function toChartData():String {
		return thickness + "," + lineLen + "," + blankLen;
	}
}